package com.songlanyun.modules.balacegiveaway.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import lombok.Data;

/**
 * 余额转赠记录
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2022-09-27 17:24:39
 */
@Data
@TableName("yxt_balance_give_away")
public class BalanceGiveAwayEntity extends RootEntity<Long,BalanceGiveAwayEntity> implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId
	private Long id;
	/**
	 * 转赠人id
	 */
	private Long giveUserId;
	/**
	 * 转赠人真实姓名
	 */
	private String giveRealName;
	/**
	 * 转赚人手机号
	 */
	private String giveMobile;
	/**
	 * 被赠与人id
	 */
	private Long acceptUserId;
	/**
	 * 被赠与人真实姓名
	 */
	private String acceptRealName;
	/**
	 * 被赠与人手机号
	 */
	private String acceptMobile;
	/**
	 * 实际转赠的余额
	 */
	private BigDecimal giveBalance;
	/**
	 *
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@Override
	public Long getIdentity() {
		return getId();
	}
}
